#!/usr/bin/env zsh
# custom functions
addToPath() {
    if [[ "$PATH" != *"$1"* ]]; then
        export PATH=$PATH:$1
    fi
}

addToPathFront() {
    if [[ "$PATH" != *"$1"* ]]; then
        export PATH=$1:$PATH
    fi
}

# fzf things
source /usr/share/doc/fzf/examples/key-bindings.zsh
source /usr/share/doc/fzf/examples/completion.zsh

# custom vars
STOW_FOLDERS="bin:~,nvim:~/.config/nvim,tmux:~,zsh:~,nvim/autoload:~/.local/share/nvim/site/autoload"
DOTFILES=$HOME/.dotfiles
export DOTFILES=$DOTFILES
export STOW_FOLDERS=$STOW_FOLDERS

# path updates
addToPathFront $HOME/.local/scripts
addToPathFront $HOME/.local/bin

